package corp.edu.amadeus.web.action;

import com.opensymphony.xwork2.ActionSupport;
import corp.edu.amadeus.core.business.object.impl.FileBO;
import java.util.Collection;
import corp.edu.amadeus.core.business.service.ifc.IFileService;
import corp.edu.amadeus.core.business.locator.ServiceLocator;

public class FinderFileAction extends ActionSupport {

	private Integer id;
	private String tags;
	private String type;
	private String lang;
	private IFileService service_file;
	private Collection<FileBO> files;

	public FinderFileAction() {
		this.service_file = ServiceLocator.getFileService();
	}

	public String execute() throws Exception {
    	this.files = this.service_file.getAllFiles();
		return SUCCESS;
    }

	public Integer getId() { return this.id; }
	public void setId(Integer i) { this.id = i; }

	public String getTags() { return this.tags; }
	public void setTags(String t) {this.tags = t; }

	public String getType() { return this.type; }
	public void setType(String t) { this.type=t; }

	public String getLang() { return this.lang; }
	public void setLang(String l) { this.lang = l; }

	public Collection<FileBO> getFiles() { return this.files; }
	public void setFiles(Collection<FileBO> f) { this.files = f; }
}